home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10331 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.2 KB  |  53 lines

  1. Path: maine.maine.edu!io92118
  2. Organization: University of Maine System
  3. Date: Thu, 7 Mar 1996 09:33:53 EST
  4. From: <IO92118@MAINE.MAINE.EDU>
  5. Message-ID: <96067.093353IO92118@MAINE.MAINE.EDU>
  6. Newsgroups: comp.lang.c++
  7. Subject: Help for C++ OW programming?
  8.  
  9. Hi: Friends:
  10.  
  11. I find out several examples under bc45\examples\owl\examples\step01.cpp
  12.  
  13. There are many examples under above path.
  14.  
  15. I can't let the program run to generate window.complier always tell me
  16.  
  17. can't find OWL252.DLL file.
  18.  
  19. Could someone tell me what is the procedure to run this program?
  20.  
  21. The following is the program.
  22.  
  23. Thank you very much for your help.
  24.  
  25.  
  26. Han
  27.  
  28.  
  29.  
  30. //----------------------------------------------------------------------------
  31. // ObjectWindows - (C) Copyright 1991, 1994 by Borland International
  32. //   Tutorial application -- step01.cpp
  33. //----------------------------------------------------------------------------
  34. #include <owl/owlpch.h>
  35. #include <owl/applicat.h>
  36. #include <owl/framewin.h>
  37.  
  38. class TDrawApp :public TApplication {
  39.   public:
  40.  TDRAWAPP() :TAPPLICATION() {}
  41.  
  42.  VOID INITMAINWINDOW()
  43.  {
  44. SETMAINWINDOW(NEW TFRAMEWINDOW(0, "SAMPLE OBJECTWINDOWS PROGRAM"));
  45.  }
  46. };
  47.  
  48. int
  49. OwlMain(int /*argc*/, char* /*argv*/ [])
  50. {
  51.   return TDrawApp().Run();
  52. }
  53.